package cn.iocoder.yudao.module.system.controller.admin.mini.orderInfo.back.controller.admin.back.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 退/换货 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class BackBaseVO {

    @Schema(description = "退货说明")
    private String content;

    @Schema(description = "退货图片s")
    private String urls;

    @Schema(description = "退货金额", example = "309")
    private BigDecimal price;

    @Schema(description = "退货原因")
    private String title;

    @Schema(description = "1退货2换货", required = true, example = "1")
    @NotNull(message = "1退货2换货不能为空")
    private Integer type;

    @Schema(description = "审核状态1待审核2通过3未通过", required = true, example = "2")
    @NotNull(message = "审核状态1待审核2通过3未通过不能为空")
    private Integer status;

    @Schema(description = "退货单号", required = true)
    @NotNull(message = "退货单号不能为空")
    private String code;

    @Schema(description = "商品")
    private String goods;

    @Schema(description = "商品id", example = "23676")
    private Integer orderId;

    @Schema(description = "物流信息")
    private String logistic;

    @Schema(description = "商家物流信息")
    private String businLogistic;

    @Schema(description = "物流发货时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime logisTime;

    @Schema(description = "商家物流发货时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime businTime;

}
